<?php
/**
 * Description of User
 *
 * @author josema
 */
class User extends DataBaseObject implements FormComunication {
    protected $table = 'users';

    protected $foreign_keys = array(
        'transactions' => array('class' => 'Transaction', 'path' => 'transaction', 'cardinality' => 'n', 'foreign_key' => 'owner'),
        'accounts' => array('class' => 'Account', 'path' => 'accounts', 'cardinality' => 'n', 'foreign_key' => 'owner')
    );

    public function formLoad() {
        $load_prop = array('email', 'password');

        foreach ($load_prop as $prop)
            $this->$prop = $_POST[$prop];
    }

    public function showForm() {

    }
}
?>
